
def get_machine_id():
  try:
    with open("/etc/machine-id", "r") as f:
      machine_id = f.readline().strip()
      return machine_id
  except FileNotFoundError:
    return None
  
if __name__ == "__main__":
  print(get_machine_id())

